home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
- CreateObjectType("objective_random_attacks", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(300, 360);
- }
-
- Action()
- {
- NewRandomObjective()
- {
- Add("objective_attack1", 25);
- Add("objective_explore1", 5);
- Add("objective_attack2", 30);
- Add("objective_attack3", 15);
- Add("objective_explore2", 10);
- }
- }
- }
- }
-
- CreateObjectType("objective_attack1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- ExecuteScript("attack1*", "squad.move.typebasetotrail")
- {
- Op("%.types", "=", "attack1");
- Op("%.base", "=", "Base");
- Op("%.trail", "=", "AttackPath2");
- Op("%.attack", "=", 1);
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_random_attacks");
- }
- }
- }
-
- CreateObjectType("objective_explore1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- ExecuteScript("explore1*", "squad.explore.typebase")
- {
- Op("%.types", "=", "attack1");
- Op("%.base", "=", "Base");
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_random_attacks");
- }
- }
- }
-
- CreateObjectType("objective_attack2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- ExecuteScript("attack2*", "squad.move.typebasetotrail")
- {
- Op("%.types", "=", "attack2");
- Op("%.base", "=", "Base");
- Op("%.trail", "=", "AttackPath1");
- Op("%.attack", "=", 1);
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_random_attacks");
- }
- }
- }
-
- CreateObjectType("objective_attack3", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- ExecuteScript("attack3*", "squad.move.typebasetotrail")
- {
- Op("%.types", "=", "attack3");
- Op("%.base", "=", "Base");
- Op("%.trail", "=", "AttackPath3");
- Op("%.attack", "=", 1);
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_random_attacks");
- }
- }
- }
-
- CreateObjectType("objective_explore2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TRUE");
-
- Action()
- {
- ExecuteScript("explore2*", "squad.explore.typebase")
- {
- Op("%.types", "=", "attack2");
- Op("%.base", "=", "Base");
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_random_attacks");
- }
- }
- }
-
- CreateObjectType("objective_checkion1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("AND")
- {
- Condition("Timer")
- {
- Time(480);
- }
- Condition("OR")
- {
- Condition("InRegion")
- {
- Region("Leftside");
- Team("JDA");
- Type("*")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power1");
- Team("JDA");
- Type("*")
- {
- Amount(0);
- Operator(">");
- }
- }
- }
- }
- Action()
- {
- ExecuteScript("checkion1*", "squad.move.typebasetotrail")
- {
- Op("%.types", "=", "attack1");
- Op("%.base", "=", "Base");
- Op("%.trail", "=", "CheckIon1");
- Op("%.attack", "=", 1);
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_checkion1");
- }
- }
- }
-
- CreateObjectType("objective_checkion2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("AND")
- {
- Condition("Timer")
- {
- Time(480);
- }
- Condition("OR")
- {
- Condition("InRegion")
- {
- Region("Rightside");
- Team("JDA");
- Type("*")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("InRegion")
- {
- Region("monkey_power2");
- Team("JDA");
- Type("*")
- {
- Amount(0);
- Operator(">");
- }
- }
- }
- }
- Action()
- {
- ExecuteScript("checkion2*", "squad.move.typebasetotrail")
- {
- Op("%.types", "=", "attack2");
- Op("%.base", "=", "Base");
- Op("%.trail", "=", "CheckIon2");
- Op("%.attack", "=", 1);
- Op("%.acceptInsufficient", "=", 1);
- }
- NewObjective("objective_checkion2");
- }
- }
- }
-
-
-
-